home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Links / follow-link-mousever-2.izs < prev    next >
Text File  |  2005-08-07  |  1KB  |  42 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Follow Link Upon Mouseover II
  4. <!/TITLE>
  5.  
  6. <!DESCRIPTION>A script that causes a link to the "followed" as soon as the surfer moves the mouse over it (as opposed to clicking it). Unlike the first version, this one loads the target URL in a secondary window instead. Great if the links are to another site, and you don't want to "lose your visitors."
  7. <!/DESCRIPTION> 
  8.  
  9. <!CATEGORY>links<!/CATEGORY>
  10.  
  11. <!SCRIPT>
  12. <!-- START OF SCRIPT -->
  13. <script>
  14.  
  15. function loadfollow(which){
  16. if (!window.win2||win2.closed)
  17. win2=window.open(which.href)
  18. else
  19. win2.location=which.href
  20. }
  21. </script>
  22. <a href="http://www.javascriptkit.com" onMouseover="loadfollow(this)">Click here to go back home!</a>
  23. <!-- END OF SCRIPT -->
  24. <!/SCRIPT>
  25.  
  26. <!PREVIEW>
  27. <!-- START OF SCRIPT -->
  28. <script>
  29.  
  30. function loadfollow(which){
  31. if (!window.win2||win2.closed)
  32. win2=window.open(which.href)
  33. else
  34. win2.location=which.href
  35. }
  36. </script>
  37. <a href="http://www.javascriptkit.com" onMouseover="loadfollow(this)">Click here to go back home!</a>
  38.  
  39. <!-- END OF SCRIPT -->
  40. <!/PREVIEW>
  41.  
  42. <!RELATED>NONE<!/RELATED>